package com.lin.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("user")
public class UserPO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String password;
    private String phone;
    private String info;
    private Integer balance;
    private Integer status;

    public UserPO() {
    }

    public UserPO(Long id, String username) {
        this.id = id;
        this.username = username;
    }

    public UserPO(Long id, String username, String password, String phone, String info, Integer balance, Integer status) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.info = info;
        this.balance = balance;
        this.status = status;
    }

    public UserPO(String username, String password, String phone, String info, Integer balance, Integer status) {
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.info = info;
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", info='" + info + '\'' +
                ", balance='" + balance + '\'' +
                ", status='" + status + '\'' +
                '}';
    }

}
